// pages/main/main.js
// 引入全局app.js文件
const app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    swiperList: [
      "../../photos/swiper/banner1.jpeg",
      "../../photos/swiper/banner2.jpg",
      "../../photos/swiper/banner3.jpg",
      "../../photos/swiper/banner4.jpg",
    ],
    publishList: [
      {
        icon: "../../images/publish/kuaidi.png",
        text: "快递代取",
        url: "../expressGet/expressGet",
      },
      {
        icon: "../../images/publish/dayin.png",
        text: "打印服务",
        url: "../print/print",
      },
      {
        icon: "../../images/publish/benpao.png",
        text: "校园跑腿",
        url: "../run/run",
      },
      {
        icon: "../../images/publish/kuaidi2.png",
        text: "快递代寄",
        url: "../expressSend/expressSend",
      },
      {
        icon: "../../images/publish/zujie.png",
        text: "租借服务",
        url: "../rent/rent",
      },
      {
        icon: "../../images/publish/youxi.png",
        text: "游戏陪玩",
        url: "../game/game",
      },
      {
        icon: "../../images/publish/rubbish.png",
        text: "代扔垃圾",
        url: "../trash/trash",
      },
      {
        icon: "../../images/publish/daiti.png",
        text: "代替服务",
        url: "../replace/replace",
      },
      {
        icon: "../../images/publish/qita.png",
        text: "其他帮助",
        url: "../otherHelp/otherHelp",
      },
    ],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {},
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {},

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {},

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {},

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {},

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {},

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {},

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {},
  showNotice() {
    wx.showModal({
      title: "通知信息",
      content:
        "所有问题统一每天晚上22:00 - 01:00处理，直接联系客户留言即可！发单写清楚需 求，接单也请看清楚下单的需求！谢谢配合！",
      showCancel: false,
    });
  },
});
